{extend name="../front" /}
{block name="head"}
<title>我的订单－{:config('site.title')}</title>
{/block}
{block name="main"}
<main class="container">
  {include file='navbar' /}
  <div class="card">
    <div class="card-body pb-0">
      <div class="card-title fw-bold mb-3">最近100条订单记录</div>
      <table class="table table-bordered table-striped table-hover text-center">
        <thead>
          <tr>
            <th>序号</th>
            <th>订单名称</th>
            <th>订单号码</th>
            <th>订单金额</th>
            <th>订单状态</th>
            <th>创建时间</th>
          </tr>
        </thead>
        <tbody>
          {volist name="list" id="item"}
          <tr>
            <td>{$i}</td>
            <td>{$item.pay_name}</td>
            <td>{$item.pay_sign}</td>
            <td>{$item.pay_total_fee}</td>
            <td>{if $item['pay_status'] > 1}<span class="text-primary">已付款</span>{else/}<span class="text-muted">未支付</span>{/if}</td>
            <td>{$item.pay_create_time|date='Y-m-d H:i:s'}</td>
          </tr>
          {/volist}
        </tbody>
      </table>
    </div>
  </div>
</main>
{/block}